using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.SocialPlatforms.Impl;

public class ScoreManager : MonoBehaviour
{
    public TextMeshProUGUI scoreText;
    private int score = 0;
    private void Start()
    {
        scoreText.text = "Point: " + score;
    }
    // Start is called before the first frame update
    public void ChangeScore(int number)
    {
        score += number;
        scoreText.text = "Point: " + score;
    }


}
